<?php if (isset($keywordData) and !empty($keywordData)) :  ?>
<rsp stat="ok">
        <destination>
            <keyword_id><?php e($keywordData['Keyword']['id'])?></keyword_id>
            <url><?php e($keywordData['Keyword']['destination_url'])?></url>
        </destination>   
<?php else: ?>
<rsp stat="fail">
    <err>
    <?php if ($session->check('Message.flash')): ?>
        <msg><?php e(strip_tags($session->read('Message.flash')));?></msg>
    <?php endif; ?>
    </err>
<?php endif; ?>
</rsp> 